package com.spring1.Lx2.config;

import com.spring1.Lx2.controller.Controller1;
import com.spring1.Lx2.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

//@Configuration
@ComponentScan("com.spring1.Lx2")
public class Config {
    @Bean
    public User getUser(){
        return new User();
    }

    @Bean
    public Controller1 getController1(){
        return new Controller1();
    }
}
